|
SmartFTP FTP Library
|
FXP downloads a specified remote file.
HRESULT FXPDownloadFile( [in] BSTR bstrRemoteFile, [in] long nStartPosLo, [in] long nStartPosHi, [out, retval] enumError * retval );
If the Passive property is true the method returns with ftpErrorPaused after the PASV command and the address of the PASV reply is available in the PassiveAddress property. To continue call the Continue method.
If the Passive property is false the method returns with ftpErrorMoreData if the PassiveAddress property is empty. To continue call the Continue method. After the PORT command reply is received the method returns ftpErrorPaused to allow synchronization with the other connection.
The client send the RETR command to start the data transfer. In case the nRestart arguments are greater than zero, the client sends a REST command to resume the transfer.
The user is responsible to set the correct data transfer settings.
Events
OnTransferInit
OnFXPDownloadFile
OnTransferStart
OnTransferEnd
OnFXPDownloadFile
|
What do you think about this topic? Send feedback!
|
|
Copyright (c) by SmartSoft Ltd. All rights reserved.
|